#include"encryptfacade.h"
#include"json.hpp"
#include"public.h"
#include<fstream>
using json = nlohmann::json;
int main()
{
    json j;
    ifstream jfile("../config.json");
    jfile >> j;
    jfile.close();
    
    unique_ptr<AbstractEncryptFacade> ef = s_facade_map[j.at("cipher")]();
    ef->FileEncrypt("../file.txt", "../code.txt");
}